///PHILOTES Source Code.  (C)2012 PhiloLabs
#pragma once

#include <Cg/cg.h>
#include "OgreString.h"

#ifdef PHILO_RENDER_PLUS_EXPORTS
# define _OgreCgPluginExport __declspec(dllexport)
#else
# define _OgreCgPluginExport __declspec(dllimport)
#endif

namespace Ogre {

    /** Utility function, checks Cg for errors, throw exception if detected.
    @param ogreMethod Ogre method name, as Class::method
    @param errorTextPrefix The text to prefix the Cg error text with
    */
    void checkForCgError(const String& ogreMethod, const String& errorTextPrefix, CGcontext context);

}
